/**
 * Lop Frame chinh cua game
 */
package view;

import javax.swing.JFrame;

import control.ComponentMover;

public class MainFrame extends JFrame {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	//constructor
	public MainFrame() {
		setUndecorated(true);
		MainPanel mainPanel = new MainPanel();
		mainPanel.setMainFrame(this);
		setContentPane(mainPanel);
		ComponentMover cm = new ComponentMover();
		cm.registerComponent(this);

		setTitle("Dachser Game - OOP");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		pack();
		this.setResizable(false);
		setLocationRelativeTo(null);
		setVisible(true);
	}
}
